﻿#----------------------------
# Imports


import bpy
import imp
import os
import sys

print("Path of animexport.py: " + os.path.dirname(os.path.realpath(__file__)))

sys.path.append(os.path.dirname(os.path.realpath(__file__)))

import actions
import tags
import skel

# Need to reload while changing files during development
imp.reload(actions)
imp.reload(tags) 
imp.reload(skel)
    
#-------------------------------------

if __name__ == "__main__" :

    obj = bpy.context.selected_objects[0]

    path = ""
    
    actions.write(obj, path + ".actions.xml")
    skel.write(obj, path + ".skel.xml")
